<?php
/**
 * @date 2012-4-24
 * @author GhostWei
 */
class controller_admin_catalog extends system_controller_action {
	
	private $user = null;
	private $referer = null;
	private $language = null;
	public function init() {
		if($this->adminLogin()) {
			return;
		}
		$this->view->language = $this->language = $this->view->language();
		$this->view->user = $this->user = system_user::getInstance()->getRow();
		$this->view->referer = $this->referer = $this->getRequest()->getHeader('referer');
		
		$this->crumbs()->addPage(system_nav_page::create($this->language->load('Catalog'))->setRoute('catalog/index'));
	}
	
	public function action_index() {
		$this->render();
	}
	
}

